package com.hifar.base.serialNo.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author zhuWeiWei
 * @description TODO
 * @date 2024/12/5 11:23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("base_serial_no")
@ApiModel(value = "系统序号对象", description = "系统-公用")
public class BaseSerialNo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    @TableId("ID")
    @JSONField(name = "id")
    private String id;


    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    @JSONField(name = "tenantId")
    private String tenantId;

    /**
     * type
     */
    @ApiModelProperty(value = "类型")
    @TableField("type")
    @JSONField(name = "type")
    private String type;

    /**
     * yearDay
     */
    @ApiModelProperty(value = "日期标识")
    @TableField("year_day")
    @JSONField(name = "yearDay")
    private String yearDay;


    /**
     * serialNo
     */
    @ApiModelProperty(value = "序号")
    @TableField("serial_no")
    @JSONField(name = "serialNo")
    private Integer serialNo;
}
